﻿using Microsoft.Data.Edm;
using System;
namespace Microsoft.Data.OData.Query.SemanticAst
{
    /// <summary>
    /// Base class for all semantically bound nodes which represent a composable collection of values.
    /// </summary>
    public abstract class EntityCollectionNode : CollectionNode
    {
        /// <summary>
        /// Get the resouce type of a single entity from the collection represented by this node.
        /// </summary>
        public abstract IEdmEntityTypeReference EntityItemType
        {
            get;
        }
        /// <summary>
        /// Get the EntitySet that contains this collection.
        /// </summary>
        public abstract IEdmEntitySet EntitySet
        {
            get;
        }
    }
}
